﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SearchMemberPage1.aspx.cs" Inherits="FYPHP.SearchMember" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 207px;
        }
        .style2
        {
            width: 198px;
        }
        .style3
        {
            width: 157px;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <span class="style1"><span class="style2"><strong>Member Management</strong></span><br />
        </span>
        <br />
    <table cellpadding="3" cellspacing="3" width="722" align="center" style="border: 1px solid #aaaaaa">
<tr><td>&nbsp;IC</td><td>:</td><td class="style3"><asp:TextBox ID="txtIC" 
        runat="server"></asp:TextBox></td>
    <td>Email</td><td>:</td><td><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td></tr>

<tr><td>User Name</td><td>:</td><td class="style3"><asp:TextBox ID="txtUserName" 
        runat="server"></asp:TextBox></td>
    <td>Position</td><td>:</td><td><asp:TextBox ID="txtPosition" runat="server"></asp:TextBox></td></tr>
<tr><td colspan="6" align="center" style="border-top: 1px solid #aaaaaa">
<asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" />&nbsp;<asp:Button ID="btnReset" runat="server" Text="Reset" /></td></tr>
</table>

        <br />
 <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
         <asp:Repeater ID="ItemList" runat="server" EnableViewState="False">
       
<HeaderTemplate>
<table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
 <tr style="background-color: #eee; font-weight: bold;"><td>Picture</td><td>Member Name</td><td>Age</td><td>Gender</td><td>Position</td></tr>

</HeaderTemplate>

<ItemTemplate>
     <tr>
            <td align="center" width="50">
            <img src="\uploads\products\<%#DataBinder.Eval(Container.DataItem, "u_picture" ) %>" alt="" height="40px" width="40px" />
            </td>
            <td style="text-align: left"><a href="/SearchMemberPage2.aspx?id=<%#DataBinder.Eval(Container.DataItem, "u_id" ) %>">
            <%#DataBinder.Eval(Container.DataItem, "username" ) %></a><br /> 
             </td>
            <td width="70"><%#DataBinder.Eval(Container.DataItem, "u_age" ) %></td>
            <td width="25"><%#DataBinder.Eval(Container.DataItem, "u_gender" ) %></td>
             <td width="25"><%#DataBinder.Eval(Container.DataItem, "u_position" ) %></td>
        </tr>
   </ItemTemplate>

   <FooterTemplate>
    </table>
    </FooterTemplate>
</asp:Repeater> 
        </asp:View>
        <asp:View ID="View2" runat="server">
        <table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
        <tr><td align="center"><i>No record found.</i></td></tr>
        </table>
        </asp:View>
    </asp:MultiView>
        <br />
        <br />
        <br />
        <br />



        <br />
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
